Add a web platform test for APNG While animated-png.html uses internals for selecting frames and verifying that we decode APNGs properly, this test confirms that a basic animation will work correctly, and can work in other browsers. - apng.png A simple APNG with two frames. The first frame is red, and displays for as short a time as possible (11 ms; anything less than that and Chromium increases the time), followed by a green frame. The image does not loop. The green frame matches green.png, which already exists - animated-png-timeout-ref.html Reference page showing the existing image (green.png). BUG=437662 Review-Url: https://codereview.chromium.org/2814453004 Cr-Commit-Position: refs/heads/master@{#464038} 
diff --git a/apng/animated-png-timeout-ref.html b/apng/animated-png-timeout-ref.html new file mode 100644 index 0000000..c46bb90 --- /dev/null +++ b/apng/animated-png-timeout-ref.html 
@@ -0,0 +1 @@ +<img src=../images/green.png> 
diff --git a/apng/animated-png-timeout.html b/apng/animated-png-timeout.html new file mode 100644 index 0000000..6975bd9 --- /dev/null +++ b/apng/animated-png-timeout.html 
@@ -0,0 +1,11 @@ +<html class="reftest-wait"> +<title>APNG: Second frame displays quickly, replacing red with green.</title> +<link rel="match" href="animated-png-timeout-ref.html"/> +<img src=../images/apng.png onload="loaded()"/> +<script> + function loaded() { + setTimeout(function() { + document.documentElement.classList.remove("reftest-wait"); + }, 1000); + } +</script> 
diff --git a/images/apng.png b/images/apng.png new file mode 100644 index 0000000..e96e647 --- /dev/null +++ b/images/apng.png Binary files differ 
diff --git a/lint.whitelist b/lint.whitelist index 8ff3fd5..1e78fa7 100644 --- a/lint.whitelist +++ b/lint.whitelist 
@@ -145,6 +145,7 @@  SET TIMEOUT: *-manual.*  SET TIMEOUT: 2dcontext/*  SET TIMEOUT: annotation-model/scripts/ajv.min.js +SET TIMEOUT: apng/animated-png-timeout.html  SET TIMEOUT: cookies/resources/testharness-helpers.js  SET TIMEOUT: common/reftest-wait.js  SET TIMEOUT: conformance-checkers/*